package com.improve.frame.log.annotation;

import com.improve.frame.log.enums.OperationType;

import java.lang.annotation.*;

/**
 * @Description
 *      操作日志注解
 * @Author wzxing918
 * @Date 2021-03-31
 * @Version 1.0.0
 **/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface OperationLog {

    /**
     * 操作类型
     */
    OperationType type() default OperationType.OTHER;

    /**
     * 模块
     */
    String module() default "";

    /**
     * 操作描述
     */
    String desc() default "";

    /**
     * 加密字符
     */
    String encryptKey() default "******";

    /**
     * 需要加密字段
     */
    String[] encryptFields() default {"password","pwd"};
}